﻿/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/

CKEDITOR.editorConfig = function( config )
{
	config.language = 'zh-cn'; // 配置语言   
	config.uiColor = '#FFF'; // 背景颜色   
	config.width = '680px'; // 宽度   
	config.height = '400px'; // 高度   
	config.skin = 'office2003';//界面v2,kama,office2003   

	// 工具栏（基础'Basic'、全能'Full'、自定义）plugins/toolbar/plugin.js
	config.toolbar = 'Full';// 工具栏风格Full,Basic
	//这里可以配置全菜单有哪些按钮
	/*
		config.toolbar_Full = [
		['Source','-','Save','NewPage','Preview','-','Templates'],
		['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'],
		['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
		['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'],
		'/',
		['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
		['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
		['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
		['Link','Unlink','Anchor'],
		['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
		'/',
		['Styles','Format','Font','FontSize'],
		['TextColor','BGColor']
		];
	*/
	// 编辑器的z-index值
	config.baseFloatZIndex = 10000;
	
	//设置快捷键
	config.keystrokes = [
		[ CKEDITOR.ALT + 121 /*F10*/, 'toolbarFocus' ], //获取焦点
		[ CKEDITOR.ALT + 122 /*F11*/, 'elementsPathFocus' ], //元素焦点
		
		[ CKEDITOR.SHIFT + 121 /*F10*/, 'contextMenu' ], //文本菜单
		
		[ CKEDITOR.CTRL + 90 /*Z*/, 'undo' ], //撤销
		[ CKEDITOR.CTRL + 89 /*Y*/, 'redo' ], //重做
		[ CKEDITOR.CTRL + CKEDITOR.SHIFT + 90 /*Z*/, 'redo' ], //
		
		[ CKEDITOR.CTRL + 76 /*L*/, 'link' ], //链接
		
		[ CKEDITOR.CTRL + 66 /*B*/, 'bold' ], //粗体
		[ CKEDITOR.CTRL + 73 /*I*/, 'italic' ], //斜体
		[ CKEDITOR.CTRL + 85 /*U*/, 'underline' ], //下划线
		
		[ CKEDITOR.ALT + 109 /*-*/, 'toolbarCollapse' ]
	]
	
	//设置快捷键 可能与浏览器快捷键冲突 plugins/keystrokes/plugin.js.
	config.blockedKeystrokes = [
		CKEDITOR.CTRL + 66 /*B*/,
		CKEDITOR.CTRL + 73 /*I*/,
		CKEDITOR.CTRL + 85 /*U*/
	]

	//页面载入时，编辑框是否立即获得焦点 plugins/editingblock/plugin.js plugins/editingblock/plugin.js.
	config.startupFocus = true;

	//保持word粘贴过来的样式
	config.pasteFromWordRemoveFontStyles = false;
	config.pasteFromWordRemoveStyles = false;

	//起始的索引值
	config.tabIndex =0
	//当用户键入TAB时，编辑器走过的空格数，(&nbsp;) 当值为0时，焦点将移出编辑框 plugins/tab/plugin.js
	config.tabSpaces = 8
	//默认的字体名 plugins/font/plugin.js
	config.font_defaultLabel = 'Arial';
	//字体编辑时的字符集 可以添加常用的中文字符：宋体、楷体、黑体等 plugins/font/plugin.js
	config.font_names = 'Arial;Times New Roman;Verdana;宋体;楷体;黑体;微软雅黑;隶书;幼圆;华文琥珀;';
	//文字的默认式样 plugins/font/plugin.js
	config.font_style = 
		{
	        element   : 'span',
	        styles   : { 'font-family' : '#(family)' },
	        overrides : [ { element : 'font', attributes : { 'face' : null } } ]
	    };
	//字体默认大小 plugins/font/plugin.js
	config.fontSize_defaultLabel = '12px';
	//字体编辑时可选的字体大小 plugins/font/plugin.js
	config.fontSize_sizes ='8/8px;9/9px;10/10px;11/11px;12/12px;14/14px;16/16px;18/18px;20/20px;22/22px;24/24px;26/26px;28/28px;36/36px;48/48px;72/72px'
	//设置字体大小时 使用的式样 plugins/font/plugin.js
	config.fontSize_style =
	    {
	        element   : 'span',
	        styles   : { 'font-size' : '#(size)' },
	        overrides : [ { element : 'font', attributes : { 'size' : null } } ]
	    };

	//表情的地址 plugins/smiley/plugin.js
	config.smiley_path = 'ckeditor/plugins/smiley/images/'
	//对应的表情图片 plugins/smiley/plugin.js
	config.smiley_images = [
		'regular_smile.gif','sad_smile.gif','wink_smile.gif','teeth_smile.gif','confused_smile.gif','tounge_smile.gif',
		'embaressed_smile.gif','omg_smile.gif','whatchutalkingabout_smile.gif','angry_smile.gif','angel_smile.gif','shades_smile.gif',
		'devil_smile.gif','cry_smile.gif','lightbulb.gif','thumbs_down.gif','thumbs_up.gif','heart.gif',
		'broken_heart.gif','kiss.gif','envelope.gif'
	]
	//可选的表情的描述 plugins/smiley/plugin.js
	/*config.smiley_descriptions=[
		'1','2','3','4','5','6','7','8','9','10','11','12','13','14','15',
		'16','17','18','19','20','21','22','23','24','25','26','27','28','29','30',
		'31','32','33','34','35','36','37'
	]*/

    config.filebrowserBrowseUrl = 'ckeditor/uploader/browse.jsp';  

    config.filebrowserImageBrowseUrl = 'ckeditor/uploader/browse.jsp?type=Images';  

    config.filebrowserFlashBrowseUrl = 'ckeditor/uploader/browse.jsp?type=Flashs';  

    config.filebrowserUploadUrl = 'ckeditor/uploader/upload.jsp';  

    config.filebrowserImageUploadUrl = 'ckeditor/uploader/upload.jsp?type=Images';  

    config.filebrowserFlashUploadUrl = 'ckeditor/uploader/upload.jsp?type=Flashs';  

    config.filebrowserWindowWidth = '640';  

    config.filebrowserWindowHeight = '480';  



};
